package com.tax.config.exception;
/**
 * 自定义业务异常
 */
public class GenericException extends RuntimeException {

    private int errorCode;

    private String innerMsg;

    private transient Object[] args;

    public GenericException(int errorCode) {
        super();
        this.errorCode = errorCode;
    }
    public GenericException(int errorCode,Throwable cause) {
        super(cause);
        this.errorCode = errorCode;
    }
    public GenericException(int errorCode,String message) {
        super(message);
        this.errorCode = errorCode;
    }
    public GenericException(String message) {
        super(message);
        this.errorCode = 500;
    }

    public int getErrorCode() {
        return errorCode;
    }
}
